throw (someone) a curveball

Translations
prendre quelqu’un au dépourvu
Definitions
To surprise someone with an unexpected challenge or difficulty, often in a way that complicates their plans or understanding.